package org.hgvc.webapp.ets.jsf.beans.report;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.faces.model.SelectItem;

import org.hgvc.webapp.ets.bo.Branch;


public class ReportSearchBean implements Serializable {

	public static final String lt = "<";
	public static final String le = "<=";
	public static final String eq = "=";
	public static final String ge = ">=";
	public static final String gt = ">";

	private Date startDate;
	private Date endDate;
	private String operator;
	private Branch branch = new Branch();
	private List<SelectItem> selectOperatorList = new ArrayList<SelectItem>();

	public ReportSearchBean(){
		selectOperatorList.add(new SelectItem(lt, lt));
		selectOperatorList.add(new SelectItem(le, le));
		selectOperatorList.add(new SelectItem(eq, eq));
		selectOperatorList.add(new SelectItem(ge, ge));
		selectOperatorList.add(new SelectItem(gt, gt));
	}
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public static String getLt() {
		return lt;
	}

	public static String getLe() {
		return le;
	}

	public static String getEq() {
		return eq;
	}

	public static String getGe() {
		return ge;
	}

	public static String getGt() {
		return gt;
	}

	public List<SelectItem> getSelectOperatorList() {
		return selectOperatorList;
	}

	public void setSelectOperatorList(List<SelectItem> selectOperatorList) {
		this.selectOperatorList = selectOperatorList;
	}
	public Branch getBranch() {
		return branch;
	}
	public void setBranch(Branch branch) {
		this.branch = branch;
	}

}
